package o;

import android.view.View;
import androidx.appcompat.widget.Toolbar;
import java.lang.ref.WeakReference;

public class px extends SkinAttr {

    static final class b extends fkz<SkinAttr, Integer> {
        private WeakReference<Toolbar> ˋ;

        public /* synthetic */ void ॱ(Object obj) {
            ˏ((Integer) obj);
        }

        private b(Toolbar toolbar) {
            this.ˋ = new WeakReference(toolbar);
        }

        public void ˏ(Integer num) {
            Toolbar toolbar = (Toolbar) this.ˋ.get();
            if (toolbar != null) {
                toolbar.setSubtitleTextColor(num.intValue());
            }
        }
    }

    public px() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof Toolbar) {
            Toolbar toolbar = (Toolbar) view;
            if ("color".equals(this.attrValueTypeName)) {
                this.ʽ = "color";
                fks.ˎ(view.getContext(), this, new b(toolbar)).ॱ(z);
            }
        }
    }
}
